<template>
  <view class="content">
    <u-swiper style="width: 100%;" height="200" :indicator="true" :list="list1" @change="change" @click="click"></u-swiper>
    <uni-card>
      <view class="row">
        <view v-for="(item, index) in list2">
          <image src="https://img2.baidu.com/it/u=1364869847,3504484684&fm=253&fmt=auto&app=120&f=JPEG" mode="scaleToFill" />
          <view>{{ item.SysMenuID }}</view>
        </view>
      </view>
    </uni-card>
    <uni-card>
      <view>我是卡片内容区</view>
    </uni-card>
    <uni-card>
      <view>我是卡片内容区</view>
    </uni-card>
  </view>
</template>

<script>
import request from '../../utils/request';
export default {
  data() {
    return {
      list1: [
        "https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00596-1532.jpg",
        "https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00632-1445.jpg",
        "https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00317-564.jpg",
      ],
      list2: []
    }
  },
  onLoad() {
    this.getData()
  },
  methods: {
    change() {},
    getData() {
      let obj = {
        PageIndex: 0, 
        PageSize: 0, 
        Data: {
          EquipmentCategory: uni.getStorageSync('username'), 
          EquipmentType: uni.getStorageSync('username'), 
          Check1: 1, 
          ProductNo: '', 
          cboArea: '', 
          Check2: 0
        }
      }
      request.post('api/frmSchSumQry/GetSchSumData', obj).then((res) => {
        this.list2 = res.Data
      })
    }
  },
}
</script>

<style lang="scss" scoped>
.content {
  padding: 20rpx;
  .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    view {
      text-align: center;
      border-radius: 10rpx;
      margin-bottom: 20rpx;
      image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 20rpx;
      }
    }
  }
}
</style>
